<table width="100%" cellpadding="0" cellspacing="0">
	<tbody>
		<tr bgcolor="#F0F0F0">
		  <td height="40" colspan="2"><h3 style="margin-left:5px">All Projects:&nbsp;<?=$this->versionData['pname']?>&nbsp;: <?=$this->versionData['vname']?></h3></td>
		</tr>
		<tr>
			<td width="70%" valign="top">
				<table cellpadding="0" cellspacing="0" width="100%">
					<tr>
						<td>
							<div><b>Release Date:</b>&nbsp;<?=$this->versionData['releasedate']?></div>
							<br>
							<div><b>Description:</b>&nbsp;<?=$this->versionData['description']?></div>
						</td>
					</tr>
				</table>
				<br>
				<table width="98%" cellspacing="0" cellpadding="0" align="center">
				<tbody>
					<tr>
						<td>
							<table border="0" cellpadding="2" cellspacing="0" width="45%" style="border:0px">
								<tbody>
									<tr>
										<td width="1%"><b>Select:</b></td>
										<td align="center" bgcolor="#bbbbbb" nowrap="nowrap" width="10%">
												<font color="#ffffff"><b>Open Issues</b></font>										</td>
										<td align="center" width="10%"><b><a href="<?=$this->baseUrl()?>/component/roadmap/projectId/<?=$this->projectId?>/cid/<?=$this->componentData['id']?>">Road Map</a></b></td>
									</tr>
								</tbody>
						  </table>
						</td>
				  </tr>
						<tr>
						<td colspan="2">
							<table width="100%" cellspacing="0" style="border:1px solid #bbbbbb">
								<tbody>
									<tr bgcolor="#f0f0f0">
										<td width="50%">
											<h3>Summary</h3>
											<div><b>Issues:</b>All | <b>Unresolved</b></div>
										</td>
										<td>
											<h3>Components</h3>
											<div>(with all issues in each component for this version)</div>
										</td>
									</tr>
									<tr>
									  <td valign="top">
									  <table width="98%" cellpadding="0" cellspacing="1">
									  	<?php
										$i = 1; 
										foreach ($this->versionIssues as $issue) {?>
										<tr <?php if($i%2) { echo 'bgcolor="#ffffff"';} else { echo 'bgcolor="#FAFAFA";';}?>>
											<td><img src="<?=$this->baseUrl().$issue['issueTypeIcon']?>" title="<?=$issue['issueTypeName']?>"></td>
											<td><?=$issue['pkey']?></td>
											<td><a href="<?=$this->baseUrl()?>/issue/view/id/<?=$issue['id']?>"><?=$issue['summary']?></a></td>
											<td><img src="<?=$this->baseUrl().$issue['priorityIcon']?>" title="<?=$issue['priorityName']?>"></td>
											<td><img src="<?=$this->baseUrl().$issue['issueStatusIcon']?>" title="<?=$issue['issueStatusName']?>"></td>
										</tr>
										<?php  
												$i++;
											}?>
									  </table>
									  </td>
										<td valign="top"><table width="98%" cellspacing="0">
                                          <tbody>
                                            <?php
														$i = 1; 
														foreach ($this->componentsData as $component) {?>
                                            <tr <?php if($i%2) { echo 'bgcolor="#ffffff"';} else { echo 'bgcolor="#FAFAFA";';}?>>
                                              <td><a href="">
                                                <?=$component['cname']?>
                                              </a></td>
                                              <td align="right"><?=$component['c_issues']?></td>
                                            <tr>
                                              <?php  
														$i++;
													}?>
											<?php if($this->unscheduleIssues) {?>
											<tr>
												<td><a href="">Unscheduled</a></td>
												<td align="right"><?=$this->unscheduleIssues?></td>
											</tr>
											<?php }?>
                                          <tbody>
                                          </table></td>
									</tr>
								</tbody>
						  </table>
						</td>
					</tr>
				</tbody>
			  </table>
			</td>
			<td width="30%" valign="top" style="background-color:#fffff0;border:1px solid #bbbbbb">
			<table width="90%" align="center" cellspacing="1">
              <tr>
                <td colspan="2"><h3 style="margin-left:10px;color:#003366;">Preset Filters</h3></td>
              </tr>
              <tr>
                <td width="50%" align="left"><a href="<?=$this->baseUrl()?>/filter/view/projectId/<?=$this->projectId?>">All</a></td>
                <td><a href="<?=$this->baseUrl()?>/filter/view/projectId/<?=$this->projectId?>/resolved/-1w">Resolved Recently</a></td>
              </tr>
              <tr>
                <td width="50%" align="left">Outstanding</td>
                <td><a href="<?=$this->baseUrl()?>/filter/view/projectId/<?=$this->projectId?>/created/-1w">Added Recently</a></td>
              </tr>
              <tr>
                <td width="50%" align="left"><a href="<?=$this->baseUrl()?>/filter/view/projectId/<?=$this->projectId?>/fixfor/-1">Unscheduled</a></td>
                <td><a href="<?=$this->baseUrl()?>/filter/view/projectId/<?=$this->projectId?>/updated/-1w">Updated Recently</a></td>
              </tr>
              <tr>
                <td width="50%" align="left"><a href="<?=$this->baseUrl()?>/filter/view/projectId/<?=$this->projectId?>/assigneeSelect/issue_current_user">Assign to me</a></td>
                <td>Most Important</td>
              </tr>
              <tr>
                <td width="50%" align="left"><a href="<?=$this->baseUrl()?>/filter/view/projectId/<?=$this->projectId?>/reporterSelect/issue_current_user">Reported by me</a></td>
                <td>&nbsp;</td>
              </tr>
            </table>
			<h3 style="margin-left:10px;color:#003366;">Version Summary</h3>
			<?php foreach ($this->versionSummary as $summary) {?>
				<table width="90%" align="center" cellpadding="0" cellspacing="0">
					<tbody>
						<tr>
							<td width="1%"><img src="<?=$this->baseUrl().$summary['issueStatusIcon']?>" align="absmiddle" title="<?=$summary['issueStatusName']?>"/></td>
							<td nowrap="">&nbsp;<?=$summary['issueStatusName']?></td>
							<td><?=$summary['c']?></td>
							<td width="60%">
								<table width="100%" cellpadding="0" cellspacing="0">
									<tr>
										<td width="<?=round($summary['c']/$this->totalIssues*100)?>%">
											<table cellpadding="0" cellspacing="0" width="100%">
												<tr>
													<td bgcolor="#3c78b5">
													<a title="22"><img src="<?=$this->baseUrl()?>/images/spacer.gif" width="100%" height="10"></a>
													</td>
												</tr>
											</table>
										</td>
										<td width="<?php echo (100-round($summary['c']/$this->totalIssues*100))?>">&nbsp;&nbsp;&nbsp;<?=round($summary['c']/$this->totalIssues*100)?>%</td>
									</tr>
								</table>
							</td>
						</tr>
					</tbody>
			  </table>
			  <?php } ?>
			  <h3 style="margin-left:10px;color:#003366;">Open Issues</h3>
			  <?php foreach ($this->openIssues as $issue) { ?>
			  <table width="90%" align="center" cellpadding="0" cellspacing="0">
					<tbody>
						<tr>
							<td width="1%"><img src="<?=$this->baseUrl().$issue['priorityIcon']?>" align="absmiddle" /></td>
							<td nowrap="">&nbsp;<?=$issue['priority']?></td>
							<td><?=$issue['c']?></td>
							<td width="60%">
								<table width="100%" cellpadding="0" cellspacing="0">
									<tr>
										<td width="<?=round($issue['c']/$this->totalIssues*100)?>">
											<table cellpadding="0" cellspacing="0" width="100%">
												<tr>
													<td bgcolor="#3c78b5">
													<a title="2"><img src="<?=$this->baseUrl()?>/images/spacer.gif" width="100%" height="10"></a>
													</td>

												</tr>
											</table>
										</td>
										<td width="<?php echo (100-round($issue['c']/$this->totalIssues*100))?>">&nbsp;&nbsp;&nbsp;<?=round($issue['c']/$this->totalIssues*100)?>%</td>
									</tr>
								</table>
							</td>
						</tr>
					</tbody>
			  </table>
			  <?php } ?>
			</td>
		</tr>
	</tbody>
</table>